import request from '@/utils/request'
export function addCartReq(goodId) {
    return request({ url: 'cart/addCart', method: 'get', params: { good: goodId } })
}

export function cartListReq() {
    return request({ url: 'cart/cartList', method: 'get' })
}

export function cartUpdateCountReq(data) {
    return request({
        url: 'cart/updateCartCount', method: 'get', params: {
            id: data.id, count: data.count
        }
    })
}